package dto

import "time"

type Matcher interface {
	// 获取分数
	GetScore() int
	// 获取匹配者id
	GetMatcherId() int
	// 获取匹配时间
	GetStartMatchTime() time.Time
	// 获取匹配类型
	GetMatchType() int
}

// 默认的匹配
type DefaultMatcher struct {
	Score     int
	MatcherId int
	Time      time.Time
	MatchType int
}

func (d DefaultMatcher) GetScore() int {
	return d.Score
}

func (d DefaultMatcher) GetMatcherId() int {
	return d.MatcherId
}

func (d DefaultMatcher) GetStartMatchTime() time.Time {
	return d.Time
}

func (d DefaultMatcher) GetMatchType() int {
	return d.MatchType
}
